package com.xpoint.backend.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xpoint.backend.common.R;
import com.xpoint.backend.entity.Employee;

import javax.servlet.http.HttpServletRequest;

public interface EmployeeService extends IService<Employee>  {
//    登录到后台管理系统
    R<Employee> login(Employee employee, HttpServletRequest request);
//    添加员工
    R<String> sevaEmp(Employee employee,HttpServletRequest request);
//    分页查询
    R<Page> findPage(Long page,Long pageSize,String name);
//    根据id查询
    R<Employee> findByid(Long id);
//    更新员工以及员工状态
    R<String> updateEmp(Employee employee,HttpServletRequest request);
}
